import { createRouter, createWebHistory } from 'vue-router'
import home from '@/views/home/home.vue'
import sy from '@/views/home/sy.vue'
import fl from '@/views/home/fl.vue'
import gwc from '@/views/home/gwc.vue'
import wd from '@/views/home/wd.vue'
import lb from '@/views/home/lb.vue'
import gwc1 from '@/views/home/gwc1.vue'
import dd from '@/views/home/dd.vue'
import tjym from '@/views/home/tjym.vue'
import xq from '@/views/home/xq.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/home/sy' },
    {path: '/home',component: home,children:[
      {path: 'sy',component: sy},
      {path: 'fl',component: fl},
      {path: 'gwc',component: gwc},
      {path: 'wd',component: wd},
    ]},
    {path: '/lb/:cat_name',component: lb},
    {path: '/gwc1',component: gwc1},
    {path: '/dd',component: dd},
    {path: '/tjym',component: tjym},
    {path: '/xq',component: xq},
  ],
})

export default router
